package com.zjzk.demo.service.impl;

import com.zjzk.demo.domain.WorkingRecord;
import com.zjzk.demo.mapper.WorkingRecordMapper;
import com.zjzk.demo.service.IWorkingRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WorkingRecordServiceImpl implements IWorkingRecordService {
    @Autowired
    private WorkingRecordMapper workingRecordMapper;

    @Override
    public List<WorkingRecord> selectWorkingRecordList(WorkingRecord workingRecord) {
        return workingRecordMapper.selectWorkingRecordList(workingRecord);
    }

    @Override
    public List<WorkingRecord> selectWorkingRecordAll() {
        return workingRecordMapper.selectWorkingRecordAll();
    }

    @Override
    public WorkingRecord selectWorkingRecordById(Long wrId) {
        return workingRecordMapper.selectWorkingRecordById(wrId);
    }

    @Override
    public int updateWorkingRecord(WorkingRecord workingRecord) {
        return workingRecordMapper.updateWorkingRecord(workingRecord);
    }

    @Override
    public int insertWorkingRecord(WorkingRecord workingRecord) {
        return workingRecordMapper.insertWorkingRecord(workingRecord);
    }

    @Override
    public int deleteWorkingRecordById(Long wrId) {
        return workingRecordMapper.deleteWorkingRecordById(wrId);
    }

    @Override
    public int deleteWorkingRecordByIds(Long[] wrIds) {
        return workingRecordMapper.deleteWorkingRecordByIds(wrIds);
    }
}
